﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Server.CacheData;
using CPPEI.Coolzon.Service;
using CPPEI.Coolzon.Service.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Server.ServiceImplement
{
    class ReqSetPropertyXmlStringHandler : BaseHandler<ReqSetPropertyXmlStringData, RespSetPropertyXmlStringData>
    {
        public ReqSetPropertyXmlStringHandler()
            : base(RESPONSE_SCENARIO.SCENE, RESPONSE_COMMAND.SCENE.SETPROPERTYXMLSTRING)
        {
        }

        protected override RespSetPropertyXmlStringData OnHandle(Data.MainServiceData.Request request, ReqSetPropertyXmlStringData requestData)
        {
            RespSetPropertyXmlStringData responseData = new RespSetPropertyXmlStringData();
            responseData.SceneName = requestData.SceneName;
            responseData.PartName = requestData.PartName;
            responseData.PropertyName = requestData.PropertyName;
            responseData.XmlString = requestData.XmlString;
            return responseData;
        }
    }
}
